<%@page import="com.mmy.domain.line.TLineOrder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>转订单收款</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>转订单收款</h2>			
		</div>
	</header>
	<section class="container">
			<div>
				<form>
				<!-- <form action="savepayorderline" method="post" > -->
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>转订单收款
						</h4>
				<div>
				<table class="info-table" >
				<tr>
					<th>收据号</th>
					<td>
						<input type="hidden" name="LineID" id="LineID" value="${iLineID}" >
						<input type="hidden" name="ID" id="ID" value="${tLineOrder.getID()}" >
						<input type="text" name="Voucher" id="voucher" required/><span class="mustWrite">*</span>
					</td>
					<th>预约日期</th>
					<td>
					<fmt:formatDate value="${tLineOrder.getReserveDate()}" pattern="yyyy年MM月dd日"/>
						<!-- <input type="datetime-local" name="Time" required/><span class="mustWrite">*</span> -->
					</td>
					<th>总额</th>
					<td>${tLineOrder.getOrderAmount()}</td>
				</tr>
				<tr>
					<th>应收款</th>
					<td>
						<input type="number" name="Receivable" id="receivable" required/><span class="mustWrite">*</span>
					</td>
				
					<th>实收款</th>
					<td>
						<input type="number" name="Receipt" id="receipt" required/><span class="mustWrite">*</span>
					</td>
					<th>付款类型</th>
					<td>
						<select class="input-select-vlign" name="PayType" id="payType">
								<option value="">请选择</option>
								<option value="0">现金</option>
								<option value="1">微信</option>
								<option value="2">支付宝</option>
								<option value="3">银联卡</option>
						</select>
						<span class="mustWrite">*</span>
					</td>
				</tr>
				<tbody id="orderNameTel">
				<c:forEach items="${plan}" var="plan" varStatus="status">
				<tr id="${status.index}">
					<th>标准</th>
					<td>${status.index + 1}.${plan.planName}
						<input type="hidden" id="planID${status.index}" value="${plan.planID}"/>
						<input type="hidden" id="ID${status.index}" value="${plan.ID}"/>
					</td>
					<th>姓名</th>
					<td>
						<input type="text" name="OrderName" id="orderName${status.index}" required/><span class="mustWrite">*</span>
					</td>
					<th>手机</th>
					<td>
						<input type="number" name="OrderTel" id="orderTel${status.index}" required/><span class="mustWrite">*</span>
					</td>
					<th>身份证</th>
					<td>
						<input type="number" name="identity" id="identity${status.index}" required/><span class="mustWrite">*</span>
					</td>
				</tr>
				</c:forEach>
				</tbody>
				</table>
				<center>
				<input type="button" class="btn" value="确定" onclick="printline()"/>
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 			
				</div>
				</form>
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>